package com.chuangjiangx.member.stored.service.model;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author cj-ch
 * @date 2018/9/11 下午7:16
 */
@Data
public class CtoBPayRequest {
    /**
     * @see com.chuangjiangx.domain.shared.model.PayEntry
     */
    @NotNull
    @Min(value = -1)
    @Max(value = 7)
    private Integer payEntry;

    /*
        优先级 merchantUserId>qrcodeId
        优先根据merchantUserId下单
     */
    /**
     * 商户用户Id
     */
    @Min(value = 1)
    private Long merchantUserId;
    /**
     * 二维码Id
     */
    @Min(value = 1)
    private Long qrcodeId;
    /**
     * order-pay表订单Id
     */
    @Min(value = 1)
    private Long orderId;

    /**
     * 微信支付参数
     */
    private WxMicroPayRequest wx;

//    private AliMicroPayCommand ali;


}
